home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / renaisnc / lib.lha / Lib / boundingvol.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-04  |  657 b   |  34 lines

  1. /*
  2. ** Author:      James Painter
  3. ** Purpose:     Definitions for bounding volumes
  4. **
  5. ** Copyright (c), 1989 GRAIL, University of Washington
  6. **
  7. ** $Revision: 2.4 $
  8. ** $Date: 89/03/01 12:32:29 $
  9. ** $Locker:  $
  10. ** $Log:    boundingvol.h,v $
  11.  * Revision 2.4  89/03/01  12:32:29  jamie
  12.  * *** empty log message ***
  13.  * 
  14. */
  15. #ifndef _BOUNDING_VOLUMES
  16. #define _BOUNDING_VOLUMES
  17.  
  18.  
  19. typedef  struct {
  20.   int valid;            /* True if data is valid for ray */
  21.   VectorType4D T;        /* reciprocal of direction vector */
  22. } bbRayData;
  23.  
  24. typedef struct {
  25.   double min, max;
  26. } bbIntervalType;
  27.  
  28. typedef struct {
  29.   bbIntervalType I[3];
  30. } bbBoxType;
  31.  
  32. typedef bbBoxType BoundingVolume;
  33. #endif
  34.